﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceiptIDEntry.aspx.cs" Inherits="com.vs.RF.Web.receiving.ReceiptIDEntry" MasterPageFile="~/RF.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <script type="text/javascript">
        function valForm() {
            if (form1.tbReceiptID.value == "") {
                alert("请输入收货单号");
                form1.tbReceiptID.focus();
                return false;
            }
            
            
            return true;
        }

        var iNumOfSubmit = 0;
        function btnOK_Click() {
            if (iNumOfSubmit > 0)
                return;
            if (valForm()) {
                iNumOfSubmit++;
                form1.submit();
            }
        }

        function btnCancel_Click() {
            form1.action = "ReceivingOptions.aspx";
            form1.submit();
        }

        function on_Load() {
            form1.tbReceiptID.focus();
        }
    </script>
    
    <%= stErrorMessage %>
    <form id="form1" action="ReceiptIDEntryHandling.aspx" onload="form1.tbReceiptID.focus()">
    <div>
        <table>
            <tr>
                <td>收货单号：</td>
                <td><input type="text" name="tbReceiptID" class="greyRed" /></td>
            </tr>
        </table>
    </div>  
    <div id="footer">  
        <input type="button" id="Button1" value="确定" onclick="btnOK_Click()" class="greyRed"/>
        <input type="button" id="Button2" value="取消" onclick="btnCancel_Click()" class="greyRed" />
    </div>
    </form>
</asp:Content>
